package com.fumihiko.modules.wsbj.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fumihiko.common.utils.PageUtils;
import com.fumihiko.common.utils.Query;

import com.fumihiko.modules.wsbj.dao.UpProAppointmentDao;
import com.fumihiko.modules.wsbj.entity.UpProAppointmentEntity;
import com.fumihiko.modules.wsbj.service.UpProAppointmentService;


@Service("upProAppointmentService")
public class UpProAppointmentServiceImpl extends ServiceImpl<UpProAppointmentDao, UpProAppointmentEntity> implements UpProAppointmentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        String idCards = (String)params.get("key");

        IPage<UpProAppointmentEntity> page = this.page(
                new Query<UpProAppointmentEntity>().getPage(params),
                new QueryWrapper<UpProAppointmentEntity>().eq("APPLYER_CARDCODE ",idCards)
        );

        return new PageUtils(page);
    }

}
